<template>
	<view class="container">
		<image src="@/static/advert.jpg" mode="scaleToFill" class="advert" />
	</view>
</template>

<script>
	export default {
		onLoad() {
			const _that = this;
			// 开屏广告1秒，进入主页面
			setTimeout(function() {
				_that.goHome();
			}, 1000);
		},
		methods: {
			goHome() {
				uni.switchTab({
					url: '/pages/index/index'
				});
			}
		}
	}
</script>

<style lang="scss">
	.advert {
		width: 100vw;
		height: 100vh;
	}
</style>
